@extends('layout.admin')
@section('title','导航修改')
@section('content')
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span>导航修改</span>
    </div>
    <div class="mws-panel-body no-padding">
          
        <form class="mws-form" action="/nav/update" method="post" enctype="multipart/form-data">
            @if(count($errors) > 0)
            <div class="mws-form-message warning">
                @foreach($errors->all() as $error)
                    {{$error}}<br>
                @endforeach
            </div>
            @endif 

            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">导航名称</label>
                    <div class="mws-form-item">
                        <input class="small" type="text" name="title" value="{{$nav->title}}">
                    </div>
                </div>
               <div class="mws-form-row">
                    <label class="mws-form-label">描述</label>
                    <div class="mws-form-item">
                        <input class="small" type="text" name="description" value="{{$nav->description}}">
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">导航链接</label>
                    <div class="mws-form-item">
                        <input class="small" type="text" name="link" value="{{$nav->link}}">
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">导航排序</label>
                    <div class="mws-form-item">
                        <input class="small" type="text" name="sort" value="{{$nav->sort}}">
                    </div>
                </div>
                
            </div>
            <div class="mws-button-row">
                <!-- 添加隐藏域 -->
                {{csrf_field()}}
                 <input type="hidden" name="id" value="{{$nav->id}}">
                <input value="修改" class="btn btn-danger" type="submit">
                <input value="重置" class="btn " type="reset">
            </div>
        </form>
    </div>      
</div>
@endsection